#!/usr/bin/env node

const Event = require('./05-event.js');

class Radio extends Event{
  constructor(station){
    super();
    this.#station=station;
  }

  #play = setTimeout(()=>{
    this.emit('play',this.#station);
    clearTimeout(this.#play);
  },0);

  #stop = setTimeout(()=>{
    this.emit('stop',this.#station);
    clearTimeout(this.#stop);
  },5000);

#station;

}
module.exports = Radio;
